FMeinicke's Wiki

Home

❯

Git

❯

Use a different shell for `git submodule foreach`

Use a different shell for `git submodule foreach`

May 26, 20251 min read

  • git/submodule/foreach
  • linux/sh
  • linux/bash
  • bash

foreach sh bash bash

Source

  • https://stackoverflow.com/a/65086817/12780516
  • git uses /bin/sh, so we simply need to link this to our desired shell (e.g., bash)
sudo ln -sf bash /bin/sh

Graph View

Created with Quartz v4.5.0 © 2025

  • GitHub